// Copyright (c) 2002 Torvald Riegel. All rights reserved.
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option)
// any later version.



package cpne;

import java.awt.*;
import java.awt.event.*;
import java.util.Locale;
import javax.swing.*;


import org.tigris.gef.base.*;
import org.tigris.gef.util.*;
import org.tigris.gef.graph.presentation.*;


public class App
{
    protected JGraphFrame af;
    
    public App()
        {
            // localizer + resourceloader initialisation
            Localizer.addResource("GefBase",
                                  "org.tigris.gef.base.BaseResourceBundle");
            Localizer.addResource(
                "GefPres",
                "org.tigris.gef.presentation.PresentationResourceBundle");
            Localizer.addLocale(Locale.getDefault());
            Localizer.switchCurrentLocale(Locale.getDefault());
            ResourceLoader.addResourceExtension("gif");
            ResourceLoader.addResourceLocation("/org/tigris/gef/Images");
            af = new AppFrame("CPNE");
            af.addWindowListener(new WindowAdapter() 
                {
                    public void WindowClosing(WindowEvent event) 
                        {
                            af.dispose();
                        }
                    public void WindowClosed(WindowEvent event) 
                        {
                            System.exit(0);
                        }
                }
                                  );
            af.setSize(600, 400);
            af.setVisible(true);
        }

    public static void main(String args[]) 
        {
            App app = new App();
        }
}
